<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="WEB-INF/template/template.xhtml">

	<ui:define name="content">
	<f:view locale="#{language.locale}">
		<div class="content">
		
			<f:loadBundle basename="properties.messages" var="msg" />
			<h:form>
				<h:commandButton value="History to resource with id=3"
					action="#{listHistoryController.loadHistory(3)}">
				</h:commandButton>
				<h:commandButton value="History to resource with id=4"
					action="#{listHistoryController.loadHistory(4)}">
				</h:commandButton>

				<h:dataTable id="listHistoryId"
					value="#{listHistoryController.listH}" var="hist" border="2"
					rendered="#{listHistoryController.show}">
					<h:column>
						<f:facet name="header">
							<h:outputText value="ID" />
						</f:facet>
						<h:outputText value="#{hist.id}" />
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="#{msg.author}" />
						</f:facet>
						<h:outputText value="#{hist.authorStr}" />
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="#{msg.type}" />
						</f:facet>
						<h:outputText value="#{hist.type}" />
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="#{msg.description}" />
						</f:facet>
						<h:outputText value="#{hist.description}" />
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="#{msg.date}" />
						</f:facet>
						<h:outputText value="#{hist.data}" />
					</h:column>
					<h:column>
						<h:message for="listHistoryId"></h:message>
					</h:column>
				</h:dataTable>
			</h:form>
		</div>
		</f:view>
	</ui:define>
</ui:composition>
</html>